import { ColumnProps } from '~/library/components/ProTable/interface'
import { User } from '~/src/api/interface/user'

// 表格配置项
export const roleBackColumns: ColumnProps<User.RoleBack>[] = [
  { type: 'index', width: 60 },
  { sortable: true, prop: 'roleName', label: '角色名称', minWidth: 240, align: 'left', search: { el: 'input' } },
  { sortable: true, prop: 'roleCode', label: '角色标识', minWidth: 120, align: 'left', search: { el: 'input' } },
  { sortable: true, prop: 'comments', minWidth: 160, label: '备注' },
  { sortable: true, prop: 'createTime', label: '创建时间', minWidth: 164, align: 'left' },
  { sortable: true, prop: 'updateTime', label: '修改时间', minWidth: 164, align: 'left' },
  { prop: 'operation', label: '操作', fixed: 'right', width: 140 },
]
